package com.woniuxy.mybatisstudy.mapper;

import com.woniuxy.mybatisstudy.entity.Article;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author: linKe
 * @Date: 2022/1/14 15:49
 * @FileName: ArticleMapper
 * @version: 1.0
 * @Description: 描述
 */
@Mapper
public interface ArticleMapper {
    Article findOne(@Param("id") int id);
    List<Article> findByAuthorAndCreateTime(@Param("author") String author,
                                            @Param("createTime") String createTime);
}
